SymbolsABCDEFGHIJKLMNOPQRSTUVWXYZAPDA format conventions for this book
IEEE standard$IEEE Standard 754. See IEEE standardPowerPC NumericsSANEaccuracyof basic arithmetic operationsarithmetic, IEEE standard&computer approximation of real numbersdecimal fractionsdivisionby zero2elementary functions. See transcendental functionsexception handlingexceptional events
exceptionsIEEE arithmetic
advantages
advantagesIEEE Standard 854-IEEE standard arithmetic. See IEEE arithmetic
Infinitiesas alternative to stoppinginterval arithmeticinverse operationsNaNsas alternative to stopping
advantages precisionreal numberscomputer approximationroundingdefinedrounding directioncontroltranscendental functionsdefinedzerodivision by∞. See Infinities±0. See zerobias of exponentsdata formatschoosingdiagrams
double formatdouble-double formatprecision ofrange of
single formatdenormalized numbers
density ofdouble-double formatdensity of denormalized numbers#density of single-precision numbers
double formatdiagramrangedouble-double formatcompared to extended formatdiagraminterpretation of values precisionrangeexponentdefinedextended data type compared to double-double format-floating-point data formats. See data formats#floating-point values, interpretingflush-to-zero systemsformats. See data formatsfraction fielddefinedgradual underflowIEEE data formats'. See also single format, double formatdata formatsdouble-double formatnegativepositive
integer types"interpreting floating-point valuesinvalid exceptionsignaling NaN, result ofdouble-double formatquiet signaling!negative Infinity. See Infinitiesnegative zero. See zeronormalized numbers compared to denormalized numbersdouble-double formatNot-a-Number. See NaNs!positive Infinity. See Infinitiespositive zero. See zerodata formatsof data formats
quiet NaNsrange of data formats(roundoff error with denormalized numberssign bitsign of zerosignaling NaNssignificand
single formatdiagramrange$single-precision numbers, density ofsmall valuesand error analysisrepresentingtypes. See data formats underflowgradualvalues, interpreting variable types. See data formats–0 as a resultdouble-double formatsign ofexpression evaluation format
fabs function+floating-point environment. See environment)floating-point exceptions. See exceptions
exceptionsrounding direction modes. See also rounding directionrounding precision modesinexact exceptionintegers, convertingrounding2invalid-operation exception. See invalid exceptionoverflowenvironmental controlsresult, tinydefaultdownward
to nearesttoward zeroupwardrounding downwarddefined&rounding modes. See rounding directionrounding precision modesrounding to integerrounding to nearest valuerounding toward zerodefinedrounding upwarddefinedinvalid exceptiontiny resultto-nearest rounding)toward –∞ rounding. See downward rounding'toward +∞ rounding. See upward roundingtoward-zero roundingdefinedupward roundingrounding towarddecimal to binary conversionsbinary to decimal conversionsstrings
structuresconversionsaccuracy of decimal to binarybetween decimal formatsbetween floating-point formatsdouble-double to decimalinexact exceptioninvalid exceptionconverting betweendecform structure!decimal data, reading and writingdecimal formatting structuredecimal stringsdecimal structuredecimal to binary conversionsstrings
structuresdecimal to decimal conversionsconverting to decimalconversions requiredconversionsconverting to integerconversionsconverting to integerconversions supportedstring conversions* (multiply) operator+ (plus) operator/ (divide) operatoradditionargument reductionarithmetic operationsadditiondivisionmultiplication remaindersquare rootauxiliary functions&comparison operations. See comparisonscomparison operatorscomparisonsinvolving Infinitiesinvolving NaNs
sqrt functionsqrtl functionsquare root operationdefinednan function
C languagedata types, newdouble type. See double formatfloat type. See single format*long double type. See double-double formatcompilerwidening for efficiencydouble type. See double formatdouble_t typedef9in definitions of float_t and double_t[extended data type$definitions of float_t and double_t]float type. See single formatfloat_t typedefFPCE technical report
data typesINFINITY constant*long double type. See double-double formatMathLibdata types, newNAN constantnan functionPowerPC Numerics
nanf function
nanl functioncreatingtagp parameterwidening for efficiencyaccessing the environmentC functionsatomic operationsenvironmental controlscontrolling the environmentC functions accessingC functionsC functions, types restoringcompilersavingsetting (compiler)environmental access switchpurpose, note onC functionsC functionsclearingcompilerraisingcompilerrestoring (compiler)savingsettingspurioustestingfeclearexcept functionfegetenv function
definition%difference from feholdexcept functionfegetexcept function
definitionwith fesetexcept functionfegetround function
ceil functiondecimal to binaryC functionsfloating-point to integerfloor functioninteger to floating-pointrinttol functionround functionroundtol functionrinttol functiondec2str function
definition exp field sgn field sig fieldfloor functionfloating-point numbersintegers, converting tocompilerfloor functionfloorl functionformatters, numericformatting outputfixed-style decimalfloating-style decimalnearbyint functionconverting to decimalconverting to floating-pointconverting to stringcompilerconverting to decimalconverting to floating-pointconverting to stringnearbyintl functionnum2dec function
definitionwith dec2str functionoutputfixed-style decimalfloating-style decimalrinttol functionrinttoll functionround functionfloor function
ceil functionroundl functionroundtol functionroundtoll functionscannersstr2dec function$truncating floating-point to integertruncl function
ceil functioncompiler,antilog functions. See exponential functionsscalingsign manipulationbase 2 exponentialcomparison functionsC functionscopysignl functiondifference, positive functionexp function
exp2 functionexp2l function
expl functionexpm1 functionexpm1l functiondetermining value ofexponential functionsbase 2 exponentialnatural exponentialnatural exponential – 1fabsl function
fdim functionfdiml function
fmax functionfmaxl function
fmin functionfminl functiondetermining value offrexp functionfrexpl function